package com.xs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xs.dao.CollectionDao;
import com.xs.entity.Article;
import com.xs.entity.Collection;
import com.xs.service.CollectionSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectionSeviceImpl extends ServiceImpl<CollectionDao, Collection> implements CollectionSevice {

    @Autowired
    private CollectionDao collectionDao;

    @Override
    public void removeByUdAndArticleId(Integer articleid, Integer uid) {
        collectionDao.removeByUdAndArticleId(articleid, uid);
    }

    @Override
    public List<Integer> getarticleIdonByUid(Integer uid) {
        return collectionDao.getarticleIdonByUid(uid);
    }


}
